package com.qf.cx.simplenms.link.rai.model;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.sun.jna.Structure;

public class WriteOpInfo extends Structure {
	
	public byte opId;
	public byte  mb;
	public byte  offset;
	public byte  len;
	public short[] data = new short[RaiLimit.MAX_WORD_LEN];
	
	public static class ByValue  extends WriteOpInfo implements Structure.ByValue  { }		
	public static class ByReference extends WriteOpInfo implements Structure.ByReference { }
	
    @Override  
    protected List<String> getFieldOrder() {  
        List<String> a = new ArrayList<String>();  
        a.add("opId");   
        a.add("mb");  
        a.add("offset");  
        a.add("len");  
        a.add("data"); 
        return a;  
    }

	@Override
	public String toString() {
		return "WriteOpInfo [opId=" + opId + ", mb=" + mb + ", offset=" + offset + ", len=" + len + ", data="
				+ Arrays.toString(data) + "]";
	} 
    
    

}
